package com.practice.weather.feign;

import com.practice.weather.domain.WeatherRequestForm;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-weather",url = "https://aliv8.data.moji.com")
public interface WeatherFeignClient {

    //AQI预报5天 https://aliv18.data.moji.com/whapi/json/alicityweather/aqiforecast5days
    @PostMapping("/whapi/json/alicityweather/aqiforecast5days")
    String getAqiforecast5days(@RequestHeader("Authorization") String Authorization,
                               @RequestParam("token") String token,
                               @RequestParam("cityId") String cityId);


    //天气实况

    //天气预报15天

    //天气预报24 小时

    //天气预警

    //生活指数

    //短时预报

    //空气质量指数

    //限行数据
    
}
